package com.ahaoyou.job;

import com.ahaoyou.entity.SysJob;
import com.ahaoyou.utils.JobInvokeUtil;
import lombok.extern.slf4j.Slf4j;
import org.quartz.JobExecutionContext;

/**
 * @author LH
 * @create 2022/3/9 16:28
 * 定时任务处理（允许并发执行）
 */
@Slf4j
public class QuartzJobExecution extends AbstractQuartzJob
{
    @Override
    protected void doExecute(JobExecutionContext context, SysJob sysJob) throws Exception
    {
        JobInvokeUtil.invokeMethod(sysJob);
    }
}
